package com.ydd.dto;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.ydd.entity.YddArticle;
import com.ydd.entity.YddUser;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor

public class UserArticleDTO {
    //总数
    private Integer count;
    //总页数
    private Integer totalPages;
    //每页数量
    private Integer pageSize;
    //当前页码
    private Integer currentPage;
    //列表数据
    private List<YddArticle> data;

}
